import axios from '@/libs/axios1';
let jsonHeaders = { 'content-type': 'application/json;charset=UTF-8' };
let  baseUrl= '/self-study';
export const addRecord = (data) => {
    return axios({
        url: `${baseUrl}/myCourseRecord`,
        method: 'POST',
        headers: jsonHeaders,
        data: data
    });
};
export const quertRecordList = (params) => {
    return axios({
        url: `${baseUrl}/myCourseRecord/page`,
        method: 'GET',
        headers: jsonHeaders,
        params: params
    });
};
export const deleteRecord = (id) => {
    return axios({
        url: `${baseUrl}/myCourseRecord/${id}`,
        method: 'DELETE',
        headers: jsonHeaders,
    });
};